package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.Bank;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface BankMapper extends BaseDao<Bank> {

    //    List<Bank> listBank(@Param("amount") BigDecimal amount,@Param("type") String  type);

    /**
     * 随机派单
     * @param amount
     * @param channelCode
     * @param jumpStatus
     * @return
     */
    List<Bank> listBank(@Param("amount") BigDecimal amount,
                        @Param("channelCode") String channelCode,
                        @Param("jumpStatus") Integer jumpStatus,
                        @Param("maxAmount") BigDecimal maxAmount);

    /**
     * 根据用户查询
     * @param userId
     * @param amount
     * @param channelCode
     * @param jumpStatus
     * @return
     */
    List<Bank> listUserBank(@Param("userId") Long userId, @Param("amount") BigDecimal amount, @Param("channelCode") String channelCode, @Param("jumpStatus") Integer jumpStatus);
}
